package com.neusoft.service.impl;

import com.neusoft.dao.DeptDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

public class transactionaltest {

    @Autowired
    private com.neusoft.dao.DeptDao DeptDao;

    @Transactional
    public void update2(){
        DeptDao.update2();
        System.out.println("update2成功了");
    }
}
